'use strict';

// module.exports = (app) => {
//   router.get( '/', app.controller.home.index )

//   router.get('/home', app.controller.home.home)

//   router.get('/home/:id/:name', app.controller.home.homeParams)

//   router.get('/user', app.controller.home.login)

//   router.post('/user/register', app.controller.home.register)

//   app.use(router.routes())
//      .use(router.allowedMethods())
// }
const Route = require('koa-router')();

// router.get('/', async (ctx, next) => {
//   ctx.body = 'Hello Koa 26666666!';
// });

// module.exports = router;
module.exports = app => {
  Route.get('/', async (ctx, next) => {
    ctx.body = 'Hello Koa 26666666!';
  });
  app.use(Route.routes()).use(Route.allowedMethods());
};
